#include "callinfo.h"
#include "remotedef.h"
#include <QVariant>

CallInfo::CallInfo()
    :BaseResp()
{
    call_status = CALL_STATUS_MAX;
    conference_number = "";
}

void CallInfo::unserialize(QString json)
{
    BaseResp::unserialize(json);
    if (m_json.isValid())
    {
        call_status = (int)m_json.value(KEY_CALL_STATUS).toDouble();
        conference_number = m_json.value(KEY_CALL_NUMBER).toString();
    }
}

QString CallInfo::getConferenceNumber() const
{
    return conference_number;
}

void CallInfo::setConferenceNumber(const QString &value)
{
    conference_number = value;
}

int CallInfo::getCallStatus() const
{
    return call_status;
}

void CallInfo::setCallStatus(int value)
{
    call_status = value;
}

